# 动物收容所管理系统


class Animal:
    total_animals = 0  # 类属性统计总数

    def __init__(self, name):
        self.name = name
        Animal.total_animals += 1

    def make_sound(self):
        print("......")


class Dog(Animal):
    def __init__(self, name, breed):
        super().__init__(name)  # 调用父类初始化
        self.breed = breed  # 独有属性

    def make_sound(self):
        super().make_sound()  # 调用父类方法
        print("汪汪！")


class Cat(Animal):
    def make_sound(self):
        print("喵~")


# 测试代码
dog1 = Dog("大黄", "金毛")
cat1 = Cat("咪咪")
dog2 = Dog("小黑", "柯基")

print(f"当前动物总数：{Animal.total_animals}")
print("\n动物发声测试：")
dog1.make_sound()
cat1.make_sound()
